package com.example.helloworld;

/**
 * ClassName: User
 * Package: com.example.helloworld
 * Description:
 *
 * @Author guotingting
 * @Create 2025/4/21 4:35 PM
 * @Version 1.0
 */
public class User {
    String name;
    String password;

    public boolean login(String inputName, String inputPassword) {
//        if (inputName.equals(name) && inputPassword.equals(password)) {
//            System.out.println("Login success!");
//        } else {
//            System.out.println("Login failed!");
//        }
        return inputName.equals(name) && inputPassword.equals(password);
    }
}


